<script type="text/javascript">
    if(parent){
        parent.pixlr.overlay.hide();
    }
</script>